<template>
  <div
    class="lr_titles"
  >
    <div class="item_title" v-if="title !== ''">
      <div class="title-icon" />
      <span class="title-inner"> &nbsp;&nbsp;{{ title }}&nbsp;&nbsp; </span>
    </div>
    <div
      :class="title !== '' ? 'item_title_content' : 'item_title_content_def'"
    >
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    title: {
      type: String,
      default: () => "",
    },
  },
  created() {},

  mounted() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
$item-title-height: 36px;
$item_title_content-height: calc(100% - 38px);

.lr_titles {
  box-sizing: border-box;

  :deep(.border-box-content) {
    box-sizing: border-box;
    padding: 6px 16px 0px;
  }

  .item_title {
    height: $item-title-height;
    line-height: $item-title-height;
    width: 92%;
    color: #fdfeff;
    text-align: center;
    background-image: url("../../assets/img/1675144786585-iNLiYzup.png"); 
    background-size: 100% 100%;
    height: $item_title_content-height;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 10px;

    .title-inner {
      font-weight: 900;
      font-size: 20px;
      letter-spacing: 2px;
      background: linear-gradient(
        92deg,
        #0072ff 0%,
        #00eaff 48.8525390625%,
        #01aaff 100%
      );
      -webkit-background-clip: text;
      -webkit-text-fill-color: #fdfeff;
    }
  }
  .title-icon {
    width: 25px;
    height: $item-title-height;
    background-size: 100% 100%;
    background-image: url("../../assets/img/titles/triangle.png");
  }

  .item_title_content {
    height: $item_title_content-height;
  }

  .item_title_content_def {
    width: 100%;
    height: 100%;
  }
}
</style>
